#main {
    width: 80%;
    /* background: red; */
    /* height: 1000px; */
    margin: auto;
    min-width: 1200px;
}

#searchNum p{
    font-size: 16px;
    margin-left: 50px;
    margin-top: 20px;
}

#searchNum span{
    color: red;
}

#foods {
    width: 100%;
    height: 700px;
    border: 1px solid #eee;
    margin: 10px auto;
    overflow: hidden;
    min-width: 1200px;
}

#foods #foodsList li {
    position: relative;
    float: left;
    width: 22%;
    height: 250px;
    margin-left: 30px;
    margin-top: 30px;
    border: 1px solid rgb(160, 190, 117);
    cursor: pointer;
    background: url('../images/bgtop.png') 100% 100% / cover no-repeat;
    background-size: 50%;
    background-color: #61b662;
}

#foods #foodsList li p {
    height: 50px;
    line-height: 50px;
    text-align: center;
    font-size: 16px;
    color: #fff;
}

#foods #foodsList li p:first-child {
    position: relative;
    font-size: 25px;
    font-weight: bolder;
    color: orangered;
}
#foods #foodsList li p:last-child {
    display: none;
}
#foods #foodsList li:hover p:last-child{
    display: block;
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    line-height: 250px;
    background-color:rgba(90,90,90,0.8);
    text-align: center;
}

#foods #foodsList li p:nth-child(2) {
    font-size: 20px;
    font-weight: bolder;
    color: orangered;
}

#foods #foodsList li p a {
    font-weight: bolder;
    color: #ddd;
}

#pagesList {
    display:inline-block;
    width: 100%;
    margin: 20px;
    text-align: center;
}

#pagesList li {
    display:inline-block;
    margin: 0 4px;
    font-size: 16px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color .9s;
}

#pagesList li.selectedPage {
    color: #fff;
    background-color:#61b662;
}

#pagesList li.unselectedPage {
    background: #fff;
}
#pagesList li.unselectedPage:hover{
    background-color: #ddd;
}